Code Runner 亂碼問題


  1. 安裝code runner插件

  1. 安裝完畢上方會出現執行按鈕

  2. 執行上變得非常方便跟美觀,輸出在OUTPUT端

  3. 但在中文支援部分會出現亂碼

  4. 需要針對輸出時設定為 UTF-8

  5. 增加設定值

    "code-runner.executorMap": {
             "java": "cd $dir && javac -encoding utf8 $fileName && java -Dfile.encoding=UTF-8 $fileNameWithoutExt",
             "python": "set PYTHONIOENCODING=utf8 && python -u"
     },
    
  6. 大功告成!

#code runner #visual code #Python






你可能感興趣的文章

遍歷物件 for in 和 for of

遍歷物件 for in 和 for of

滲透測試重新打底(2.1)--論Enumeration(枚舉)之DNS Enumeration

滲透測試重新打底(2.1)--論Enumeration(枚舉)之DNS Enumeration

[MTR04] W2 D15 練習六

[MTR04] W2 D15 練習六






留言討論